﻿using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(LevelDesign))]
public class LevelDesignEditor : Editor
{
	private LevelDesign levelDesign;

	public void OnEnable()
	{
		levelDesign = (LevelDesign) target;
	}

	public override void OnInspectorGUI()
	{
		base.OnInspectorGUI();

		if (GUILayout.Button("Save"))
		{
			levelDesign.Save();
			AssetDatabase.Refresh();
		}
	}
}
